package edu.zut.cs.javaee.dream.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.javaee.dream.base.service.impl.GenericTreeManagerImpl;
import edu.zut.cs.javaee.dream.product.dao.ProductCategoryDao;
import edu.zut.cs.javaee.dream.product.domain.ProductCategory;
import edu.zut.cs.javaee.dream.product.service.ProductCategoryManager;

@Service(value = "productCategoryManager")
public class ProductCategoryManagerImpl extends GenericTreeManagerImpl<ProductCategory, Long>
		implements ProductCategoryManager {

	ProductCategoryDao productCategoryDao;

	@Autowired
	public void setProductCategoryDao(ProductCategoryDao productCategoryDao) {
		this.productCategoryDao = productCategoryDao;
		this.dao = this.productCategoryDao;
	}
}
